/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_event_type.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_EVENT_TYPE
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_event_type.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_EVENT_TYPE::CTable_PPM_EVENT_TYPE( )
 :NPCRecordSet( )
{
  setTableName( "PPM_EVENT_TYPE" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  EVENT_PRICING_STRATEGY_ID.setField( "EVENT_PRICING_STRATEGY_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( EVENT_PRICING_STRATEGY_ID );
  EVENT_TYPE_ID.setField( "EVENT_TYPE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( EVENT_TYPE_ID );
  EVENT_TYPE_NAME.setField( "EVENT_TYPE_NAME", DATA_CHAR, 50, 0 );
  makeTableItem( EVENT_TYPE_NAME );
  EVENT_TYPE_DESC.setField( "EVENT_TYPE_DESC", DATA_CHAR, 4000, 0 );
  makeTableItem( EVENT_TYPE_DESC );
}


CTable_PPM_EVENT_TYPE::CTable_PPM_EVENT_TYPE( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_EVENT_TYPE" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  EVENT_PRICING_STRATEGY_ID.setField( "EVENT_PRICING_STRATEGY_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( EVENT_PRICING_STRATEGY_ID );
  EVENT_TYPE_ID.setField( "EVENT_TYPE_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( EVENT_TYPE_ID );
  EVENT_TYPE_NAME.setField( "EVENT_TYPE_NAME", DATA_CHAR, 50, 0 );
  makeTableItem( EVENT_TYPE_NAME );
  EVENT_TYPE_DESC.setField( "EVENT_TYPE_DESC", DATA_CHAR, 4000, 0 );
  makeTableItem( EVENT_TYPE_DESC );
}

CTable_PPM_EVENT_TYPE::~CTable_PPM_EVENT_TYPE( )
{
    close();
}

